#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QMessageBox>

#include "../../Headers/Classes/db.h"
#include "../../Headers/DataAccessors/reservationdataaccessor.h"

namespace Ui {
    class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();
    void Update();
    bool checkSelected();

    Reservation *getCurrentReservation();

private slots:
    void on_action_2_triggered();

    void on_action_3_triggered();

    void on_action_5_triggered();

    void on_action_8_triggered();

    void on_action_6_triggered();

    void on_action_4_triggered();

    void on_createButton_clicked();

    void on_editButton_clicked();

    void on_cancelButton_clicked();

    void on_tableView_doubleClicked(const QModelIndex &index);

    void on_tableView_entered(const QModelIndex &index);

    void on_lineEdit_textChanged(const QString &arg1);

    void on_action_10_triggered();

    void on_action_9_triggered();

private:
    Ui::MainWindow *ui;
};

#endif // MAINWINDOW_H
